package com.lm.timewheel.ele;

import java.util.ArrayList;
import java.util.List;

public class TimeSlot {
    private List<Runnable> tasks = new ArrayList<>();

    public void addTask(Runnable task) {
        tasks.add(task);
    }

    public List<Runnable> getTasks() {
        return tasks;
    }

    public void clearTasks() {
        tasks.clear();
    }
}
